<?php



class MemberlistMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.MemberlistMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('memberlist');
		$tMap->setPhpName('Memberlist');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('PASSWORD', 'Password', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('RACE', 'Race', 'string', CreoleTypes::CHAR, false, 2);

		$tMap->addColumn('FACE', 'Face', 'string', CreoleTypes::CHAR, false, 6);

		$tMap->addColumn('COUNTRY', 'Country', 'string', CreoleTypes::CHAR, false, 5);

		$tMap->addColumn('MAIN_JOB', 'MainJob', 'string', CreoleTypes::CHAR, false, 3);

		$tMap->addColumn('SUPORT_JOB', 'SuportJob', 'string', CreoleTypes::CHAR, false, 3);

		$tMap->addColumn('COMMENT', 'Comment', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('UPDATE_AT', 'UpdateAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('ADMIN_FLG', 'AdminFlg', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('DELETE_FLG', 'DeleteFlg', 'string', CreoleTypes::CHAR, false, 1);

	} 
} 